package com.xtz.mapper;

import com.xtz.domain.ShoppingCart;
import com.xtz.dto.ShoppingCartDto;
import com.xtz.dto.SubCartDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * date: 2022/5/14 17:20
 *
 * @author xietianze
 */
@Mapper
@Repository
public interface ShoppingCartMapper {
    /**
     * 添加
     * @param shoppingCart
     * @return
     */
    int add(ShoppingCart shoppingCart);

    /**
     * 查询列表
     * @return
     */

    List<ShoppingCart> getList();


    int cleanCart();

    int sub(SubCartDto dto);
}
